package com.ghost.view.pop.task
{
	import com.ghost.UI.Ghost_txt;
	import com.ghost.model.Global_data;
	
	import flash.display.Sprite;
	import flash.events.TextEvent;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;

	/**
	 * 任务追踪的cell
	 * @author ghost
	 */
	public class Task_trace_cell extends Sprite
	{
		private var txt:Ghost_txt;
		/**
		 * @param w 控制cell的长度
		 * @param task_id 任务id
		 */		
		public function Task_trace_cell(w:Number,task_id:int=0)
		{
			txt = new Ghost_txt();
			txt.selectable = false;
			txt.txtwidth = w;
			this.addChild(txt);
			txt.textcolor = 0xfffff1;
			txt.autoSize = TextFieldAutoSize.LEFT;
			txt.htmlText = "你真是个sb，你去那个小乡村找一个叫<font color='#ff0000'><a href=\"event:1221\">sb</a></font>的人不就ok了！";
			txt.addEventListener(TextEvent.LINK,link_Handler);
		}
		private function link_Handler(e:TextEvent):void
		{
			Global_data.show_game_des.show('自动寻路中..你找到那个SB了！');
		}
	}
}